<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--导航-->
<div th:fragment="menu(n)">
    <nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small" >
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">管理后台</h2>
                <a href="/admin/blogs" class=" m-item item m-mobile-hide" th:classappend=" ${n==1} ? 'active'"><i class="home icon"></i>博客管理</a>
                <a href="/admin/types" class=" m-item item m-mobile-hide" th:classappend=" ${n==2} ? 'active'"><i class="idea icon"></i>分类管理</a>
                <a href="/admin/tags" class="m-item item m-mobile-hide" th:classappend=" ${n==3} ? 'active'"><i class="tags icon"></i>标签管理</a>
                <div class="right m-item m-mobile-hide menu">
                    <div class="ui dropdown  item">
                        <div class="text">
                            <img class="ui avatar right spaced image" src="/static/images/profilePhoto.jpg">
                            薄哥鸭
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="/loginOut" class="item">注销</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>

</div>

</body>
</html>